package com.gexada.solr.dataimport.http;

import java.io.IOException;

import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.impl.client.HttpClientBuilder;

public class HttpClientHelper {
	
	static HttpClient client = null;

	static {
		HttpClientBuilder httpBuilder = HttpClientBuilder.create();
		client = httpBuilder.build();
	}
	
	public static HttpResponse execute(HttpUriRequest request) throws ClientProtocolException, IOException {
		return client.execute(request);
	}
}
